﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WebApp.Entities
{
    /// <summary>
    /// 
    /// </summary>
    [Table("user")]
    public class User
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string Account { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Password { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string UserName { get; set; }
    }
}
